.class public Lcom/example/m6wmr/MarketshowActivity;
.super Landroid/app/Activity;
.source "MarketshowActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation

.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;
    }
.end annotation


# static fields
.field public static shopshow:Lcom/example/m6wmr/MarketshowActivity;


# instance fields
.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private goint:I

.field private goodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopname:Ljava/lang/String;

.field private shopstr:Ljava/lang/String;

.field private tempgoodsls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/GoodsBean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 49
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 50
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->areaid:Ljava/lang/String;

    .line 51
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->m:Lmyapp/MyApp;

    .line 54
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    .line 56
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 57
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->mHandler:Landroid/os/Handler;

    .line 58
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->pd:Landroid/app/ProgressDialog;

    .line 59
    iput-boolean v2, p0, Lcom/example/m6wmr/MarketshowActivity;->loaddata:Z

    .line 60
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;

    .line 61
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->goodsstr:Ljava/lang/String;

    .line 64
    iput-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    .line 67
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->shopname:Ljava/lang/String;

    .line 68
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->shopstr:Ljava/lang/String;

    .line 69
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->pingstr:Ljava/lang/String;

    .line 70
    iput v2, p0, Lcom/example/m6wmr/MarketshowActivity;->goint:I

    .line 49
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 53
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$10(Lcom/example/m6wmr/MarketshowActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 61
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->goodsstr:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$11(Lcom/example/m6wmr/MarketshowActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 67
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->shopname:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$12(Lcom/example/m6wmr/MarketshowActivity;)Z
    .locals 1

    .prologue
    .line 59
    iget-boolean v0, p0, Lcom/example/m6wmr/MarketshowActivity;->loaddata:Z

    return v0
.end method

.method static synthetic access$13(Lcom/example/m6wmr/MarketshowActivity;Z)V
    .locals 0

    .prologue
    .line 59
    iput-boolean p1, p0, Lcom/example/m6wmr/MarketshowActivity;->loaddata:Z

    return-void
.end method

.method static synthetic access$14(Lcom/example/m6wmr/MarketshowActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 61
    iput-object p1, p0, Lcom/example/m6wmr/MarketshowActivity;->goodsstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$15(Lcom/example/m6wmr/MarketshowActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 68
    iput-object p1, p0, Lcom/example/m6wmr/MarketshowActivity;->shopstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$16(Lcom/example/m6wmr/MarketshowActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 69
    iput-object p1, p0, Lcom/example/m6wmr/MarketshowActivity;->pingstr:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$2(Lcom/example/m6wmr/MarketshowActivity;)Ldbclass/DBOpenHelper;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6wmr/MarketshowActivity;Landroid/database/Cursor;)V
    .locals 0

    .prologue
    .line 64
    iput-object p1, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/Cursor;
    .locals 1

    .prologue
    .line 64
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6wmr/MarketshowActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 65
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/m6wmr/MarketshowActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 60
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$7(Lcom/example/m6wmr/MarketshowActivity;)Landroid/content/ContentValues;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;

    return-object v0
.end method

.method static synthetic access$8(Lcom/example/m6wmr/MarketshowActivity;)Ljava/util/List;
    .locals 1

    .prologue
    .line 62
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->tempgoodsls:Ljava/util/List;

    return-object v0
.end method

.method static synthetic access$9(Lcom/example/m6wmr/MarketshowActivity;)Landroid/webkit/WebView;
    .locals 1

    .prologue
    .line 55
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    return-object v0
.end method


# virtual methods
.method public Inishop()V
    .locals 0

    .prologue
    .line 449
    return-void
.end method

.method public bindbtn()V
    .locals 3

    .prologue
    .line 417
    const v2, 0x7f0c0001

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 418
    .local v0, "closebtn":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6wmr/MarketshowActivity$3;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/MarketshowActivity$3;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 428
    const v2, 0x7f0c014f

    invoke-virtual {p0, v2}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 429
    .local v1, "showshopdet":Landroid/widget/TextView;
    new-instance v2, Lcom/example/m6wmr/MarketshowActivity$4;

    invoke-direct {v2, p0}, Lcom/example/m6wmr/MarketshowActivity$4;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 444
    return-void
.end method

.method public getDataCount()J
    .locals 3

    .prologue
    .line 411
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v0}, Ldbclass/DBOpenHelper;->getReadableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v0

    .line 412
    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "select count(*) from collect where ShopId="

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    .line 411
    invoke-virtual {v0, v1, v2}, Landroid/database/sqlite/SQLiteDatabase;->rawQuery(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    iput-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    .line 413
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->moveToFirst()Z

    .line 414
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    const/4 v1, 0x0

    invoke-interface {v0, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    return-wide v0
.end method

.method public getshopSource()Z
    .locals 1

    .prologue
    .line 488
    new-instance v0, Lcom/example/m6wmr/MarketshowActivity$6;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/MarketshowActivity$6;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    .line 569
    invoke-virtual {v0}, Lcom/example/m6wmr/MarketshowActivity$6;->start()V

    .line 570
    const/4 v0, 0x0

    return v0
.end method

.method public getshopinfoSource()Z
    .locals 1

    .prologue
    .line 574
    new-instance v0, Lcom/example/m6wmr/MarketshowActivity$7;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/MarketshowActivity$7;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    .line 618
    invoke-virtual {v0}, Lcom/example/m6wmr/MarketshowActivity$7;->start()V

    .line 619
    const/4 v0, 0x0

    return v0
.end method

.method public getshoppingSource()Z
    .locals 1

    .prologue
    .line 623
    new-instance v0, Lcom/example/m6wmr/MarketshowActivity$8;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/MarketshowActivity$8;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    .line 668
    invoke-virtual {v0}, Lcom/example/m6wmr/MarketshowActivity$8;->start()V

    .line 669
    const/4 v0, 0x0

    return v0
.end method

.method public loaddatatojs()Z
    .locals 1

    .prologue
    .line 453
    new-instance v0, Lcom/example/m6wmr/MarketshowActivity$5;

    invoke-direct {v0, p0}, Lcom/example/m6wmr/MarketshowActivity$5;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    .line 482
    invoke-virtual {v0}, Lcom/example/m6wmr/MarketshowActivity$5;->start()V

    .line 483
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 15
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 74
    invoke-super/range {p0 .. p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 75
    const v12, 0x7f03003c

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->setContentView(I)V

    .line 77
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v12

    check-cast v12, Lmyapp/MyApp;

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->m:Lmyapp/MyApp;

    .line 78
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 79
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 80
    iput-object p0, p0, Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;

    .line 81
    sput-object p0, Lcom/example/m6wmr/MarketshowActivity;->shopshow:Lcom/example/m6wmr/MarketshowActivity;

    .line 83
    new-instance v12, Ljava/util/ArrayList;

    invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->goodsls:Ljava/util/List;

    .line 84
    new-instance v12, Ljava/util/ArrayList;

    invoke-direct {v12}, Ljava/util/ArrayList;-><init>()V

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->tempgoodsls:Ljava/util/List;

    .line 86
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->getIntent()Landroid/content/Intent;

    move-result-object v6

    .line 87
    .local v6, "intent":Landroid/content/Intent;
    const-string v12, "shopid"

    invoke-virtual {v6, v12}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->shopid:Ljava/lang/String;

    .line 88
    const-string v12, "shopname"

    invoke-virtual {v6, v12}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->shopname:Ljava/lang/String;

    .line 89
    const v12, 0x7f0c009b

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v9

    check-cast v9, Landroid/widget/TextView;

    .line 90
    .local v9, "shopnameTV":Landroid/widget/TextView;
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->shopname:Ljava/lang/String;

    invoke-virtual {v9, v12}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 92
    const/high16 v12, 0x7f0c0000

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v10

    check-cast v10, Landroid/widget/LinearLayout;

    .line 93
    .local v10, "top":Landroid/widget/LinearLayout;
    const v12, 0x7f0c0145

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v7

    check-cast v7, Landroid/widget/Button;

    .line 94
    .local v7, "mapbtn":Landroid/widget/Button;
    const v12, 0x7f0c0143

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    .line 95
    .local v5, "imageView3":Landroid/widget/ImageView;
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v12}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v12

    const-string v13, "1"

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-eqz v12, :cond_0

    .line 96
    const v12, 0x7f070026

    invoke-virtual {v10, v12}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 97
    const v12, -0xbf2a71

    invoke-virtual {v7, v12}, Landroid/widget/Button;->setBackgroundColor(I)V

    .line 98
    const v12, 0x7f020022

    invoke-virtual {v5, v12}, Landroid/widget/ImageView;->setImageResource(I)V

    .line 101
    :cond_0
    new-instance v12, Ldbclass/DBOpenHelper;

    iget-object v13, p0, Lcom/example/m6wmr/MarketshowActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v12, v13}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;

    .line 102
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v12}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v12

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 103
    new-instance v12, Landroid/content/ContentValues;

    invoke-direct {v12}, Landroid/content/ContentValues;-><init>()V

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->cv:Landroid/content/ContentValues;

    .line 104
    new-instance v12, Lcom/example/m6wmr/MarketshowActivity$1;

    invoke-direct {v12, p0}, Lcom/example/m6wmr/MarketshowActivity$1;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    .line 177
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->getDataCount()J

    move-result-wide v2

    .line 178
    .local v2, "checkMycollect":J
    const-wide/16 v12, 0x0

    cmp-long v12, v2, v12

    if-lez v12, :cond_2

    .line 179
    const v12, 0x7f0c0141

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 180
    .local v4, "collectbtn":Landroid/widget/ImageView;
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    .line 181
    .local v8, "resources":Landroid/content/res/Resources;
    const v12, 0x7f020040

    invoke-virtual {v8, v12}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 182
    .local v1, "btnDrawable":Landroid/graphics/drawable/Drawable;
    invoke-virtual {v4, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 190
    :goto_0
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->bindbtn()V

    .line 192
    const v12, 0x7f0c001c

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v12

    check-cast v12, Landroid/webkit/WebView;

    iput-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    .line 193
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    invoke-virtual {v12}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v11

    .line 194
    .local v11, "webSettings":Landroid/webkit/WebSettings;
    const/4 v12, 0x1

    invoke-virtual {v11, v12}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    .line 196
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v13, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;

    const/4 v14, 0x0

    invoke-direct {v13, p0, v14}, Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;-><init>(Lcom/example/m6wmr/MarketshowActivity;Lcom/example/m6wmr/MarketshowActivity$Waimairenjsobj;)V

    const-string v14, "waimai"

    invoke-virtual {v12, v13, v14}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 197
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    const-string v13, "file:///android_asset/marketindex.html"

    invoke-virtual {v12, v13}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    .line 198
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    if-eqz v12, :cond_1

    .line 200
    iget-object v12, p0, Lcom/example/m6wmr/MarketshowActivity;->mWebView:Landroid/webkit/WebView;

    new-instance v13, Lcom/example/m6wmr/MarketshowActivity$2;

    invoke-direct {v13, p0}, Lcom/example/m6wmr/MarketshowActivity$2;-><init>(Lcom/example/m6wmr/MarketshowActivity;)V

    invoke-virtual {v12, v13}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 221
    :cond_1
    return-void

    .line 184
    .end local v1    # "btnDrawable":Landroid/graphics/drawable/Drawable;
    .end local v4    # "collectbtn":Landroid/widget/ImageView;
    .end local v8    # "resources":Landroid/content/res/Resources;
    .end local v11    # "webSettings":Landroid/webkit/WebSettings;
    :cond_2
    const v12, 0x7f0c0141

    invoke-virtual {p0, v12}, Lcom/example/m6wmr/MarketshowActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/ImageView;

    .line 185
    .restart local v4    # "collectbtn":Landroid/widget/ImageView;
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v8

    .line 186
    .restart local v8    # "resources":Landroid/content/res/Resources;
    const v12, 0x7f02003f

    invoke-virtual {v8, v12}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 187
    .restart local v1    # "btnDrawable":Landroid/graphics/drawable/Drawable;
    invoke-virtual {v4, v1}, Landroid/widget/ImageView;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 699
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 700
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 701
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 703
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 704
    iget-object v0, p0, Lcom/example/m6wmr/MarketshowActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 706
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 688
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 690
    invoke-virtual {p0}, Lcom/example/m6wmr/MarketshowActivity;->finish()V

    .line 694
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 2

    .prologue
    .line 674
    const/4 v1, 0x0

    iput v1, p0, Lcom/example/m6wmr/MarketshowActivity;->goint:I

    .line 676
    iget-boolean v1, p0, Lcom/example/m6wmr/MarketshowActivity;->loaddata:Z

    if-eqz v1, :cond_0

    .line 677
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    .line 678
    .local v0, "msg":Landroid/os/Message;
    const/16 v1, 0x26

    iput v1, v0, Landroid/os/Message;->arg1:I

    .line 679
    iget-object v1, p0, Lcom/example/m6wmr/MarketshowActivity;->h:Landroid/os/Handler;

    invoke-virtual {v1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    .line 682
    .end local v0    # "msg":Landroid/os/Message;
    :cond_0
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 683
    return-void
.end method
